Socket
Socket
Sign inDemoInstall

@aws-crypto/caching-materials-manager-node

Package Overview
Dependencies
Maintainers
3
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-crypto/caching-materials-manager-node

The AWS Encryption SDK for JavaScript is a client-side encryption library designed to make it easy for everyone to encrypt and decrypt data using industry standards and best practices. It uses a data format compatible with the AWS Encryption SDKs in other


Version published
Weekly downloads
219K
increased by0.79%
Maintainers
3
Weekly downloads
 
Created

What is @aws-crypto/caching-materials-manager-node?

@aws-crypto/caching-materials-manager-node is a package provided by AWS that allows for the caching of cryptographic materials in Node.js applications. This can help improve performance by reducing the number of calls to the AWS Key Management Service (KMS) for cryptographic operations.

What are @aws-crypto/caching-materials-manager-node's main functionalities?

Caching Cryptographic Materials

This feature allows you to create a caching materials manager that caches cryptographic materials for a specified duration, number of bytes, or number of messages. This reduces the number of calls to AWS KMS, improving performance.

const { NodeCachingMaterialsManager } = require('@aws-crypto/caching-materials-manager-node');
const { KmsKeyringNode } = require('@aws-crypto/kms-keyring-node');

const keyring = new KmsKeyringNode({
  generatorKeyId: 'arn:aws:kms:us-west-2:123456789012:key/abcd1234-abcd-1234-abcd-1234abcd1234',
  keyIds: ['arn:aws:kms:us-west-2:123456789012:key/abcd1234-abcd-1234-abcd-1234abcd1234']
});

const cachingCMM = new NodeCachingMaterialsManager({
  backingMaterials: keyring,
  maxAge: 300000, // 5 minutes
  maxBytesEncrypted: 1000000, // 1MB
  maxMessagesEncrypted: 1000
});

console.log('Caching Materials Manager created:', cachingCMM);

Other packages similar to @aws-crypto/caching-materials-manager-node

FAQs

Package last updated on 20 Sep 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc